package com.great.domain;

import com.great.utils.DateUtils;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    private String id;
    private String user_Name;
    private String user_Password;
    private String user_Nickname;
    private String user_Sex;

    private Date user_Birthday;

    private String user_Birthdaystr;
    private String user_Email;
    private String user_Mobile;
    private String user_Address;
    private Integer user_Status;
    private String user_Status_str;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser_Name() {
        return user_Name;
    }

    public void setUser_Name(String user_Name) {
        this.user_Name = user_Name;
    }

    public String getUser_Password() {
        return user_Password;
    }

    public void setUser_Password(String user_Password) {
        this.user_Password = user_Password;
    }

    public String getUser_Nickname() {
        return user_Nickname;
    }

    public void setUser_Nickname(String user_Nickname) {
        this.user_Nickname = user_Nickname;
    }

    public String getUser_Sex() {
        return user_Sex;
    }

    public void setUser_Sex(String user_Sex) {
        this.user_Sex = user_Sex;
    }

    public Date getUser_Birthday() {
        return user_Birthday;
    }

    public void setUser_Birthday(Date user_Birthday) {
        this.user_Birthday = user_Birthday;
    }

    public String getUser_Birthdaystr() {
        if(user_Birthday!=null){
            user_Birthdaystr = DateUtils.date2String(user_Birthday,"yyyy-MM-dd");
        }
        return user_Birthdaystr;
    }

    public void setUser_Birthdaystr(String user_Birthdaystr) {
        this.user_Birthdaystr = user_Birthdaystr;
    }

    public String getUser_Email() {
        return user_Email;
    }

    public void setUser_Email(String user_Email) {
        this.user_Email = user_Email;
    }

    public String getUser_Mobile() {
        return user_Mobile;
    }

    public void setUser_Mobile(String user_Mobile) {
        this.user_Mobile = user_Mobile;
    }

    public String getUser_Address() {
        return user_Address;
    }

    public void setUser_Address(String user_Address) {
        this.user_Address = user_Address;
    }

    public Integer getUser_Status() {
        return user_Status;
    }

    public void setUser_Status(Integer user_Status) {
        this.user_Status = user_Status;
    }

    public String getUser_Status_str() {
        if(user_Status!=null){
            if(user_Status==0){
                user_Status_str="异常";
            }
            else if(user_Status==1){
                user_Status_str="正常";
            }
        }
        return user_Status_str;
    }

    public void setUser_Status_str(String user_Status_str) {
        this.user_Status_str = user_Status_str;
    }
}
